package com.elepro.shoppingmall.service.user;

import com.elepro.shoppingmall.entity.Message;

import java.util.List;

public interface MessageService {
    //增加消息
    int insertMessage(Message message);

    //向每个普通用户增加消息
    int insertUserMessage(long messageId);

    //删除消息
    int deleteMessageById(long id);

    //向每个普通用户删除消息
    int deleteUserMessageByMessageId(long id);

    //查询所有消息
    List<Message> getAllMessage();

    //用户查询所有消息
    List<Message> getUserAllMessage(long userId);
}
